/** 
* @author : 褚国强
* @date 创建时间：2021年7月26日 上午8:46:46 
* @version 1.0
*/
package com.bsoft.project.quartz;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.bsoft.project.controller.DzfpUploadController;
import com.bsoft.project.spring.SpringUtil;

/** 
* @author : 褚国强
* @date 创建时间：2021年7月26日 上午8:46:46 
* @Description: 电子发票日报上传
* @version 1.0 
* @parameter 
* @since 
* @return 
*/

@Component
@EnableScheduling
@Configuration
@EnableAsync
public class DzfpDailyUploadTimer {
	
	private static final Logger logger = LogManager.getLogger(DzfpUploadController.class);
	/**
	 * 上传日报
	 * 每天 凌晨1点执行
	 * @return
	 */
	@Async
	@Scheduled(cron = "0 0 1 * * ?")
	public void DzfpDailyUpload(){
		logger.info("----------电子发票日报开始----------");
		
		//((DzfpUploadController)SpringUtil.getBean("dzfpUploadController")).dzfpDailyReport();
	}
}
